package oop.day10;

/**
 * 演示静态块
 */
public class StaticBlock {
    // 静态块
    static {
        System.out.println("静态块");
    }
    StaticBlock(){
        System.out.println("构造方法");
    }
    static {
        System.out.println("静态块2");
    }
    public static void main(String[] args) {
        StaticBlock s = new StaticBlock();
        StaticBlock ss = new StaticBlock();
        StaticBlock ss1 = new StaticBlock();
        StaticBlock ss2 = new StaticBlock();
    }
}
